package com.itheima.service;

import java.sql.SQLException;

import com.itheima.dao.UserDao;
import com.itheima.domain.User;

/**
 * 用户管理的业务层的类
 * @author admin
 *
 */
public class UserService {

	/**
	 * 业务层用户的登录的方法:
	 * @param user
	 * @return
	 * @throws SQLException 
	 */
	public User login(User user) throws SQLException {
		UserDao userDao = new UserDao();
		return userDao.login(user);
	}

}
